import React from 'react'
import { Result, Button } from 'antd';
import { useRouter } from 'next/router'
import { getStaging } from '@/utils/getStaging'

function PageNotFound() {

  const router = useRouter();

  const backHome = () => {
    router.push('/system')
  }

  return (
    <Result
      status="404"
      title="404"
      subTitle="对不起，当前页面不存在，请点击下方按钮返回首页"
      extra={
        <Button type="primary"
          onClick={backHome}
        >返回首页</Button>}
    />
  )
}
export default PageNotFound